﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Menus.Models
{
    public class UserMenu
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }
        [Required]
       public string authName { get; set; }
        public string path { get; set; }
        public Permission permission { get; set; }
       public ICollection<UserSecondMenu> userSecondMenus { get; set; } = new List<UserSecondMenu>();

    }
}
